f = open('a.srt',encoding='utf8')
l = f.readlines()
f=open('b.txt','w',encoding='utf8')


for i in l:
    x = i.strip()
    if not x:
        continue
    if '0' == x[0]:
        continue
    print(x)
    f.write(' '+x)
f.close()
exit()
ss = s.replace(' ','').replace('\n','  ')
print(ss)
